package com.test.ws.s1.service.imp;

import com.test.ws.s1.bean.Supplier;
import com.test.ws.s1.mapper.SupplierDao;
import com.test.ws.s1.service.SupplierService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
@Service
public class SupplierServiceImp implements SupplierService {
    @Autowired
    private SupplierDao supplierDao;

    @Override
    public ArrayList<Supplier> selectSupplier(Supplier supplier) {
        return supplierDao.selectSupplier(supplier);
    }

    @Override
    public int insertSupplier(Supplier supplier) {
        return supplierDao.insertSupplier(supplier);
    }

    @Override
    public int deleteSupplier(Supplier supplier) {
        return supplierDao.deleteSupplier(supplier);
    }

    @Override
    public Supplier selectOneSupplier(Supplier supplier) {
        return supplierDao.selectOneSupplier(supplier);
    }

    @Override
    public int updateSupplier(Supplier supplier) {
        return supplierDao.updateSupplier(supplier);
    }

}
